package com.zjsd.sqeybusiness.mapper;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.zjsd.sqeybusiness.domain.Achievements;
import com.zjsd.sqeybusiness.dto.*;
import org.springframework.stereotype.Repository;

/**
 * 业务员业绩
Mapper接口
 *
 * @author Zheng
 * @date 2021-07-14
 */
@Repository
public interface AchievementsMapper
{
    /**
     * 查询业务员业绩

     *
     * @param achid 业务员业绩
ID
     * @return 业务员业绩

     */
    public Achievements selectAchievementsById(Long achid);

    /**
     * 查询业务员业绩
列表
     *
     * @param achievements 业务员业绩

     * @return 业务员业绩
集合
     */
    public List<Achievements> selectAchievementsList(Achievements achievements);

    /**
     * 新增业务员业绩

     *
     * @param achievements 业务员业绩

     * @return 结果
     */
    public int insertAchievements(Achievements achievements);

    /**
     * 修改业务员业绩

     *
     * @param achievements 业务员业绩

     * @return 结果
     */
    public int updateAchievements(Achievements achievements);

    /**
     * 删除业务员业绩

     *
     * @param achid 业务员业绩
ID
     * @return 结果
     */
    public int deleteAchievementsById(Long achid);

    /**
     * 批量删除业务员业绩

     *
     * @param achids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAchievementsByIds(Long[] achids);

    List<SysDept> selectProvinceList();

    List<ComputeDeductDTO> queryYwyDkInfo(ComputeDeductDTO computeDeductDTO);

    MonthDeductDTO queryYwyFy(ParamDTO paramDTO);

    List<EmployeeDeductDTO> queryEmployeeList(QueryDTO queryDTO);

    EmployeeDeductDTO queryPsnlDeductData(QueryDTO queryDTO);

    List<AreaDTO> queryProvinceList(AreaDTO areaDTO);

    List<AreaDTO> queryCityList(AreaDTO areaDTO);

    List<WxuserinfoDTO> queryWxuserList(WxuserinfoDTO wxuserinfoDTO);

    int updateWxuserLxflag(WxuserinfoDTO wxuserinfoDTO);

    void updateTcje(Achievements temp);

    List<Achievements> selectAchievementsList1(Achievements achievements);

    int examAchievements(Achievements achievements);

    int queryUserBackAchiveNum(Achievements achievements);

    List<Achievements> selectAchievementsList2(Achievements achievements);

    int  selectAchievementsList3(Achievements achievements);

    List<IntegralOrderDTO> selectIntegralOrders(IntegralOrderDTO integralOrderDTO);

    int updateAgencyOrder(IntegralOrderDTO integralOrderDTO);

    void insertIntoAchievementsById(Long achid);

    List<Achievements> selectAchievementsListByShpone(Achievements achievements);
}
